/**
 * @projectName study-note
 * @package Chain
 * @className Chain.Test
 */
package Chain;

/**
 * Test
 * @description 测试
 * @author answer_wx
 * @date 2022/7/6 11:33
 * @version 1.0
 */
public class Test {
    public static void main(String[] args) {
        Manager manager = new Manager("经理");
        Major major = new Major("总监");
        General general = new General("老板");

        manager.setSuperior(major);
        major.setSuperior(general);

        Request request = new Request();
        request.setType("请假");
        request.setContent("小刘世界这么大，我想去看看！");
        request.setNum(2);
        manager.requestAction(request);
        System.out.println("------分隔符-------");
        Request request1 = new Request();
        request1.setType("请假");
        request1.setContent("小刘回去相亲！");
        request1.setNum(4);
        manager.requestAction(request1);
        System.out.println("------分隔符-------");
        Request request2 = new Request();
        request2.setType("请假");
        request2.setContent("小刘年假还有很多！");
        request2.setNum(10);
        manager.requestAction(request2);
        System.out.println("------分隔符-------");
        Request request3 = new Request();
        request3.setType("加薪");
        request3.setContent("小刘钱太少，不相干！");
        request3.setNum(600);
        manager.requestAction(request3);
    }
}